package org.coopac.dao.impl;import java.util.List;
import org.coopac.dao.IGarantiaPrendariaDAO;
import org.coopac.model.CoopacGarantiaPrendaria;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
@Repository("GarantiaPrendariaDAO")
public class GarantiaPrendariaDAO extends BaseDaoImpl<CoopacGarantiaPrendaria> implements IGarantiaPrendariaDAO {

	@Autowired
	SessionFactory sessionFactory;

	@Override
	protected SessionFactory getSessionFactory() {
		return sessionFactory;}

	@Override
	public List<CoopacGarantiaPrendaria> listar() {
	return super.listar(CoopacGarantiaPrendaria.class);
	}

	@Override
	public void save(CoopacGarantiaPrendaria garantiaprendaria) {
		super.save(garantiaprendaria);
	}

	@Override
	public void update(CoopacGarantiaPrendaria garantiaprendaria) {
		super.update(garantiaprendaria);
	}

	@Override
	public void delete(CoopacGarantiaPrendaria garantiaprendaria) {
		super.delete(garantiaprendaria);
	}

	@Override
	public CoopacGarantiaPrendaria getById(int id){
		return (CoopacGarantiaPrendaria) super.getById(CoopacGarantiaPrendaria.class, id);
	}

}
